#define layout()
<html xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <link href="/assets/css/manage.css" media="screen" rel="stylesheet" type="text/css"/>
    <script src="/assets/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/assets/js/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        function logout() {
            window.location.href = "/logout"
        }
    </script>
</head>
<body>
<div class="manage_container">
    <div class="manage_head">
        <div class="manage_logo">
            <a href="http://www.jfinal.com" target="_blank">民航订票管理系统</a>
        </div>
        <div id="nav">
            <ul>
                <li><a href="/index"><b>首页</b></a></li>
                <li><a href="/user"><b>用户管理</b></a></li>
                #if(session.user.role==1||session.user.role==2||session.user.role==3)
                <li><a href="/aircraft"><b>机型管理</b></a></li>
                <li><a href="/airroute"><b>航线管理</b></a></li>
                <li><a href="/flighttime"><b>航班管理</b></a></li>
                #end
                #if(session.user.role==3||session.user.role==2)
                <li><a href="/flighttickets"><b>机票管理</b></a></li>
                <li><a href="/buyrecord"><b>订票管理</b></a></li>
                #end
                #if(session.user.role==3)
                <li><a href="/flightrecord"><b>飞行记录管理</b></a></li>
                #end
            </ul>
        </div>
    </div>
    <div style="text-align:right">
        <label>当前用户:</label>
        <span>#(session.user.hm)</span>
        &nbsp;
        <label>身份:</label>
        <span>
				#if(session.user.role==1)
                    航空公司
                #else if(session.user.role==2)
                    机场
                #else if(session.user.role==3)
                    乘客
                #else
                    系统管理员
                #end
        </span>
        &nbsp;
        <a target="_self" href="javascript:void(0);" onclick="logout();">退出</a>
    </div>
    <div class="main">
        #@main()
    </div>
</div>
</body>
</html>
#end